/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ro.futurefeed.service;

import com.restfb.types.User;
import java.util.List;
import ro.futurefeed.model.FacebookQLUser;

/**
 *
 * @author Georgian
 */
public interface FacebookService{
    
    String APP_ID = "233506460110989";
    String APP_SECRET = "d8ac1d9502882a10e430bc562a946fe5";
    //String HOSTANME = "http://localhost:9090";
    String HOSTANME = "http://futurefeedfb.appspot.com";
    String MAIN_PAGE = HOSTANME + "/pages/feeds.jsf";
    
    String getFacebookAccessToken(String code) throws Exception;
    
    User getFbUser(String accessToken);
    
    String getAccessTokenExtended(String accessToken);
    
    String postWallFeed(String accessToken, String to, String content);
    
    boolean deleteWallPost(String accessToken, String postId);
    
    List<FacebookQLUser> getFriends(String accessToken, String nameFilter);
}
